package com.zch.service;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zch.dao.ActivitytypeMapper;
import com.zch.dao.model.Activitytype;
import com.zch.dao.model.ActivitytypeExample;
import com.zch.daoEx.ActivitytypeMapperEx;
import com.zch.daoEx.model.ActivitytypeEx;

@Service
public class ActivitytypeService {
	@Autowired
	private ActivitytypeMapper activitytypeMapper;
	@Autowired
    private ActivitytypeMapperEx activitytypeMapperEx;

	public int countByExample(ActivitytypeExample example) {
		return this.activitytypeMapper.countByExample(example);
	}

	public Activitytype selectByPrimaryKey(String id) {
		return this.activitytypeMapper.selectByPrimaryKey(id);
	}

	public List<Activitytype> selectByExample(ActivitytypeExample example) {
		return this.activitytypeMapper.selectByExample(example);
	}

	public int deleteByPrimaryKey(String id) {
		return this.activitytypeMapper.deleteByPrimaryKey(id);
	}

	public int updateByPrimaryKeySelective(Activitytype record) {
		return this.activitytypeMapper.updateByPrimaryKeySelective(record);
	}

	public int updateByPrimaryKey(Activitytype record) {
		return this.activitytypeMapper.updateByPrimaryKey(record);
	}

	public int deleteByExample(ActivitytypeExample example) {
		return this.activitytypeMapper.deleteByExample(example);
	}

	public int updateByExampleSelective(Activitytype record, ActivitytypeExample example) {
		return this.activitytypeMapper.updateByExampleSelective(record, example);
	}

	public int updateByExample(Activitytype record, ActivitytypeExample example) {
		return this.activitytypeMapper.updateByExample(record, example);
	}

	public int insert(Activitytype record) {
		return this.activitytypeMapper.insert(record);
	}

	public int insertSelective(Activitytype record) {
		return this.activitytypeMapper.insertSelective(record);
	}

    public List<ActivitytypeEx> selectAppList() {
        return this.activitytypeMapperEx.selectAppList();
    }
    
    public List<ActivitytypeEx> selectList(Map<String, Object> map) {
        return this.activitytypeMapperEx.selectList(map);
    }
}
